<?php
//
//declare(strict_types=1);
//
///**
// *
// *  --------------------------------------------------------
// *
// *                  这是运费模板router
// *
// *  --------------------------------------------------------
// *
// */
//
//use Hyperf\HttpServer\Router\Router;
//
//Router::addGroup('/api/v1', function () {
//    //优惠券管理
//    Router::addGroup('/shop_coupon', function () {
//        Router::addRoute(['post'], '/list', 'App\Controller\ShopCouponController@list');
//        Router::addRoute(['post'], '/add', 'App\Controller\ShopCouponController@add');
//        Router::addRoute(['post'], '/edit', 'App\Controller\ShopCouponController@edit');
//        Router::addRoute(['get'], '/detail', 'App\Controller\ShopCouponController@detail');
//        Router::addRoute(['post'], '/del', 'App\Controller\ShopCouponController@del');
////        Router::addRoute(['post'], '/change_show', 'App\Controller\ShopCouponController@change_show');
//    });
//}, ['middleware' => [\App\Middleware\UserShopMiddleware::class]]);
//
////Router::addGroup('/api/v1', function () {
////    //优惠券管理
////    Router::addGroup('/food_coupon', function () {
////        Router::addRoute(['post'], '/list', 'App\Controller\ShopCouponController@list');
////        Router::addRoute(['post'], '/add', 'App\Controller\ShopCouponController@add');
////        Router::addRoute(['post'], '/edit', 'App\Controller\ShopCouponController@edit');
////        Router::addRoute(['get'], '/detail', 'App\Controller\ShopCouponController@detail');
////        Router::addRoute(['post'], '/del', 'App\Controller\ShopCouponController@del');
//////        Router::addRoute(['post'], '/change_show', 'App\Controller\ShopCouponController@change_show');
////    });
////}, ['middleware' => [\App\Middleware\FoodShopMiddleware::class]]);
////需要权限的↑
//
////无需权限的↓
//Router::addGroup('/api/v1', function () {
//    Router::addGroup('/coupon', function () {
//        Router::addRoute(['get'], '/receive', 'App\Controller\ShopCouponController@receive');
//        Router::addRoute(['post'], '/usable_coupon', 'App\Controller\ShopCouponController@usable_coupon');
//        Router::addRoute(['post'], '/user_coupon', 'App\Controller\ShopCouponController@user_coupon');
//    });
//}, ['middleware' => [\App\Middleware\UserMiddleware::class]]);
//
////无需权限的↓
//Router::addGroup('/api/v1/public', function () {
//     Router::addGroup('/coupon', function () {
//         Router::addRoute(['post'], '/list', 'App\Controller\ShopCouponController@public_list');
//     });
//}, ['middleware' => []]);